﻿using System;

namespace Grundy.Common
{
    public class Clock : IDisposable
    {
        protected static Clock instance = new Clock();

        protected Clock()
        {
        }

        public static Clock Instance
        {
            get { return instance; }
            set { instance = value; }
        }

        public virtual DateTime Utc
        {
            get { return DateTime.UtcNow; }
        }

        public void Dispose()
        {
            instance = new Clock();
        }

    }
}